package com.example.shardingshperedemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shardingshperedemo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select tu.user_id, tu.user_name, td.uvalue ustatus, td.ustatus from t_user tu left join t_dict td on tu.ustatus = td.ustatus")
    List<User> queryUserStatus();
}
